import { sequelize } from '../../db';
import { DataTypes, Model } from 'sequelize';
class Template extends Model { }

Template.init({
    name: DataTypes.STRING,
    price: DataTypes.INTEGER,
    TemplateTypeId: DataTypes.INTEGER,
    UserId: DataTypes.INTEGER,
    tag: DataTypes.STRING,
    state: {
        type: DataTypes.INTEGER,
        defaultValue: 1
    }
}, {
    sequelize
});

export default Template